'''
用100块钱买100只鸡

公鸡一只5元，母鸡一只3元，小鸡三只1元，用100元买了100只鸡，问公鸡、母鸡、
小鸡各有多少只？
'''

for gongji in range(1,101):
    for muji in range(1,101):
        for chuji in range(1,101):
            if gongji * 5 + muji*3+ chuji * 1/3 ==100 and gongji+muji+chuji==100:
                print(gongji,muji,chuji)


